package yf.mall.dao;

import org.apache.ibatis.annotations.Param;
import yf.mall.entity.ShopParamEntity;
import yf.mall.vo.ShopParamVo;
import org.apache.ibatis.annotations.Mapper;
import com.yf.dao.BaseDao;

import java.math.BigDecimal;
import java.util.List;
/**
 * 店铺设置Dao
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Wed Oct 21 16:25:07 CST 2020
 */
@Mapper
public interface ShopParamDao extends BaseDao<ShopParamEntity> {

    List<ShopParamVo> findVo(ShopParamVo vo);

    ShopParamVo getVo(Long id);

    void updateMaterialPrice(BigDecimal materialPrice);

    void updateByShopId(@Param("materialPrice") BigDecimal materialPrice, @Param("shopId")Long shopId);

    void saveShopParam(@Param("shopId")Long shopId,@Param("couponReward")BigDecimal couponReward);

    ShopParamEntity findByShopId(Long shopId);

}
